<div class="applications view">
<h2><?php  __('Application');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($application['User']['id'], array('controller' => 'users', 'action' => 'view', $application['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['modified']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('First Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['first_name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Last Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['last_name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Academic Title'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['academic_title']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Place Of Birth'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['place_of_birth']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Date Of Birth'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['date_of_birth']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Sex'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['sex']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nationality'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['nationality']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mailing Address'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['mailing_address']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phone Number'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['phone_number']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Rework Relatedness'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['rework_relatedness']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Comment'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['comment']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Active'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $application['Application']['active']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Application', true), array('action' => 'edit', $application['Application']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Application', true), array('action' => 'delete', $application['Application']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $application['Application']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Applications', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Application', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Current Research Outlines', true), array('controller' => 'current_research_outlines', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Current Research Outline', true), array('controller' => 'current_research_outlines', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Education Items', true), array('controller' => 'education_items', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Education Item', true), array('controller' => 'education_items', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Language Skills', true), array('controller' => 'language_skills', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Language Skill', true), array('controller' => 'language_skills', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Publications', true), array('controller' => 'publications', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Publication', true), array('controller' => 'publications', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Referees', true), array('controller' => 'referees', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Referee', true), array('controller' => 'referees', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Work Experiences', true), array('controller' => 'work_experiences', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Work Experience', true), array('controller' => 'work_experiences', 'action' => 'add')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php __('Related Current Research Outlines');?></h3>
	<?php if (!empty($application['CurrentResearchOutline'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $application['CurrentResearchOutline']['id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Application Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $application['CurrentResearchOutline']['application_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Title');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $application['CurrentResearchOutline']['title'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Outline');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $application['CurrentResearchOutline']['outline'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__('Edit Current Research Outline', true), array('controller' => 'current_research_outlines', 'action' => 'edit', $application['CurrentResearchOutline']['id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Education Items');?></h3>
	<?php if (!empty($application['EducationItem'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Application Id'); ?></th>
		<th><?php __('Start Date'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Institution'); ?></th>
		<th><?php __('Location'); ?></th>
		<th><?php __('Subject'); ?></th>
		<th><?php __('Degree'); ?></th>
		<th><?php __('Degree Paper Title'); ?></th>
		<th><?php __('Supervisor'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($application['EducationItem'] as $educationItem):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $educationItem['id'];?></td>
			<td><?php echo $educationItem['application_id'];?></td>
			<td><?php echo $educationItem['start_date'];?></td>
			<td><?php echo $educationItem['end_date'];?></td>
			<td><?php echo $educationItem['institution'];?></td>
			<td><?php echo $educationItem['location'];?></td>
			<td><?php echo $educationItem['subject'];?></td>
			<td><?php echo $educationItem['degree'];?></td>
			<td><?php echo $educationItem['degree_paper_title'];?></td>
			<td><?php echo $educationItem['supervisor'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'education_items', 'action' => 'view', $educationItem['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'education_items', 'action' => 'edit', $educationItem['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'education_items', 'action' => 'delete', $educationItem['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $educationItem['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Education Item', true), array('controller' => 'education_items', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Language Skills');?></h3>
	<?php if (!empty($application['LanguageSkill'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Application Id'); ?></th>
		<th><?php __('Language'); ?></th>
		<th><?php __('Level'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($application['LanguageSkill'] as $languageSkill):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $languageSkill['id'];?></td>
			<td><?php echo $languageSkill['application_id'];?></td>
			<td><?php echo $languageSkill['language'];?></td>
			<td><?php echo $languageSkill['level'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'language_skills', 'action' => 'view', $languageSkill['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'language_skills', 'action' => 'edit', $languageSkill['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'language_skills', 'action' => 'delete', $languageSkill['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $languageSkill['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Language Skill', true), array('controller' => 'language_skills', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Publications');?></h3>
	<?php if (!empty($application['Publication'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Application Id'); ?></th>
		<th><?php __('Year'); ?></th>
		<th><?php __('Description'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($application['Publication'] as $publication):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $publication['id'];?></td>
			<td><?php echo $publication['application_id'];?></td>
			<td><?php echo $publication['year'];?></td>
			<td><?php echo $publication['description'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'publications', 'action' => 'view', $publication['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'publications', 'action' => 'edit', $publication['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'publications', 'action' => 'delete', $publication['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $publication['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Publication', true), array('controller' => 'publications', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Referees');?></h3>
	<?php if (!empty($application['Referee'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Application Id'); ?></th>
		<th><?php __('First Name'); ?></th>
		<th><?php __('Last Name'); ?></th>
		<th><?php __('Email'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($application['Referee'] as $referee):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $referee['id'];?></td>
			<td><?php echo $referee['application_id'];?></td>
			<td><?php echo $referee['first_name'];?></td>
			<td><?php echo $referee['last_name'];?></td>
			<td><?php echo $referee['email'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'referees', 'action' => 'view', $referee['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'referees', 'action' => 'edit', $referee['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'referees', 'action' => 'delete', $referee['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $referee['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Referee', true), array('controller' => 'referees', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Work Experiences');?></h3>
	<?php if (!empty($application['WorkExperience'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Application Id'); ?></th>
		<th><?php __('Start Date'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Institution'); ?></th>
		<th><?php __('Location'); ?></th>
		<th><?php __('Position'); ?></th>
		<th><?php __('Project'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($application['WorkExperience'] as $workExperience):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $workExperience['id'];?></td>
			<td><?php echo $workExperience['application_id'];?></td>
			<td><?php echo $workExperience['start_date'];?></td>
			<td><?php echo $workExperience['end_date'];?></td>
			<td><?php echo $workExperience['institution'];?></td>
			<td><?php echo $workExperience['location'];?></td>
			<td><?php echo $workExperience['position'];?></td>
			<td><?php echo $workExperience['project'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'work_experiences', 'action' => 'view', $workExperience['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'work_experiences', 'action' => 'edit', $workExperience['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'work_experiences', 'action' => 'delete', $workExperience['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $workExperience['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Work Experience', true), array('controller' => 'work_experiences', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
